package com.nantian.common.math;

/**
 * <p>ClassName: Node</p >
 * <p>Description: 双向链路封装对象</p >
 * <p>Copyright: Copyright©2014</p >
 * <p>Company: 广州南天电脑系统有限公司</p >
 * <p>Date: 2021-06-28</p >
 *
 * @author 刘晓辉
 * @version 1.0
 */
public class Node {
    /**
     * 节点的值
     */
    private Object value;
    /**
     * 下一个节点
     */
    private Node next;
    /**
     * 上一个节点
     */
    private Node previous;

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Node getPrevious() {
        return previous;
    }

    public void setPrevious(Node previous) {
        this.previous = previous;
    }
}
